package com.example.es_demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import javax.validation.constraints.AssertTrue;

/**
 * @ClassName UserEntity
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2019/6/29  17:07
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Document(indexName = "myzlw",type = "user")
public class UserEntity {

    @Id
    private Integer id;
    private String name;
    private Integer age;
    private String address;


}
